﻿namespace NH3.Mapping
{
	using FluentNHibernate.Mapping;
	using NH3.Model;

	public sealed class AddressMapping : ComponentMap<Address>
	{
		public AddressMapping()
		{
			Map(x => x.StreeAddress)
				.Column("Indirizzo");
			
			Map(x => x.City)
				.Column("Citta");
			
			Map(x => x.Country)
				.Column("Nazione");
		}
	}
}
